home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_commie_gen_manager2.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  63 lines

  1.  
  2.  
  3. # Jones 3D Cog Script
  4. #
  5. # NUB_Commie_Gen_manager.cog
  6. # Gather's commies created in nub_CommieGenMove.cog and sends them to the NUB_Commie_Grid.cog
  7. # This Cog and it's sister cog are both needed... please do not remove either of them 
  8. # [JM]
  9. #
  10. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  11. #
  12. # ========================================================================================
  13. symbols
  14.  
  15. message     startup
  16. message     user0
  17.  
  18. cog         NUB_Commie_Grid
  19.  
  20. thing       Commie00       local
  21. thing       Commie01       local
  22. thing       Commie02       local
  23.  
  24. int         counter        local
  25.  
  26. int         COMMIES=3      local
  27.  
  28. end
  29. #-------------------------------------------
  30. code
  31. #-------------------------------------------
  32.  
  33. startup:
  34.  
  35.     return;
  36. #-------------------------------------------
  37. user0:
  38.     
  39.     //Recieves 3 references to things that have been greated through cog and bounces them to the User0 message the grid cog
  40.     for(counter = 0; counter < COMMIES; counter = counter + 1)
  41.     {
  42.         Commie00[counter] = Getparam(counter);
  43.         CaptureThing(Commie00);
  44.     }
  45.         
  46.     SendMessageEx(NUB_Commie_Grid, User1, GetParam(0), GetParam(1), GetParam(2), 0);
  47.     
  48.     return;    
  49.  
  50. #-------------------------------------------
  51.  
  52. end                                            
  53.     
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.